package com.yzh.openai.domain.openai.model.valobj;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 账户状态
 */
@Getter
@AllArgsConstructor
public enum UserAccountStatusVO {
    AVAILABLE(0, "可用"),
    FREEZE(1, "冻结");
    
    private Integer code;
    private String info;
    
    public static UserAccountStatusVO get(Integer code){
        switch (code) {
            case 0:
                return AVAILABLE;
            case 1:
                return FREEZE;
            default:
                return AVAILABLE;
        }
    }
}
